
#include<iostream>
#include<vector>
#include<algorithm>
#include<math.h>
using namespace std;
class Solution {
public:
	vector<int> sortedSquares(vector<int>& nums) {
		
		for (int i = 0; i < nums.size(); i++) {
			nums[i] *= nums[i];
		}
		sort(nums.begin(), nums.end(), less<int>());
		return nums;
	}
};
int main(void) {
	Solution a;
	
}